package com.jiuzhi.logger.pojo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
 * @Author tangsixiang
 * @Description //TODO  配置忽略未知的属性字段
 * @Date 9:33 2018/11/17
 **/


@JsonIgnoreProperties(ignoreUnknown = true)
public class NginxDemain {
    private String remote_addr;//访问远程IP地址
    private String referer;
    private String request;//请求地址
    private int status;//HTTP请求状态
    private int bytes;  //请求数据字节量
    private String up_addr; //客户端地址
    private String up_host; //请求地址，即浏览器中你输入的地址（IP或域名）
    //private Double up_resp_time;//请求过程中，upstream响应时间
    private String  request_time; //整个请求的总时间
    private String agent;
    private String timestamp;

    public void setRemote_addr(String remote_addr) {
        this.remote_addr = remote_addr;
    }

    public String getRemote_addr() {
        return remote_addr;
    }

    public void setReferer(String referer) {
        this.referer = referer;
    }

    public String getReferer() {
        return referer;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public String getRequest() {
        return request;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public void setBytes(int bytes) {
        this.bytes = bytes;
    }

    public int getBytes() {
        return bytes;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public void setUp_addr(String up_addr) {
        this.up_addr = up_addr;
    }

    public String getUp_addr() {
        return up_addr;
    }

    public void setUp_host(String up_host) {
        this.up_host = up_host;
    }

    public String getUp_host() {
        return up_host;
    }

    public String getRequest_time() {
        return request_time;
    }

    public void setRequest_time(String request_time) {
        this.request_time = request_time;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    @Override
    public String toString() {
        return "NginxDemain{" +
                "remote_addr='" + remote_addr + '\'' +
                ", referer='" + referer + '\'' +
                ", request='" + request + '\'' +
                ", status=" + status +
                ", bytes=" + bytes +
                ", up_addr='" + up_addr + '\'' +
                ", up_host='" + up_host + '\'' +
                ", request_time=" + request_time +
                '}';
    }
}
